import request from '@/utils/request'

// 产品替换-列表
export function queryProductReplaceList(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/list-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-添加
export function saveProductReplace(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/add-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-修改
export function updateProductReplace(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/update-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-查看
export function getProductReplaceDetail(params) {
  return request({
    url: '/wms_v1_pc/product-replace-order/get-product-replace-order-detail',
    method: 'GET',
    params
  })
}

// 产品替换-确认
export function confirmProductReplace(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/confirm-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-取消
export function cancelProductReplace(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/cancel-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-业务审核
export function businessVerify(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/b-verify-product-replace-order',
    method: 'POST',
    data
  })
}

// 产品替换-仓库审核
export function warehouseVerify(data) {
  return request({
    url: '/wms_v1_pc/product-replace-order/w-verify-product-replace-order',
    method: 'POST',
    data
  })
}